from pydantic import BaseModel
from datetime import datetime


class Meteorology(BaseModel):
    RetrievalTime: datetime
    FarmID: int
    MaxTemperature: float
    MinTemperature: float
    AvgVaporPressure: float
    WindSpeed: float
    Precipitation: float
    GlobalRadiation: float
    OtherIndicators: str

    class Config:
        orm_mode = True
